package com.atguigu.demo.excel;

import com.alibaba.excel.EasyExcel;
import com.atguigu.demo.excel.listener.ExcelListener;

/**
 * @ClassName TextExcelRead
 * @Description TODO
 * @Detail detail
 * @Author MyPC
 * @Date 2020/6/21
 * @Version 1.0
 */
public class TextExcelRead {
    public static void main(String[] args) {
        //Excel文件路径
        String path="D:\\write.xlsx";
        //读取Excel，会自动关闭流
        EasyExcel.read(path,DemoData.class, new ExcelListener()).sheet().doRead();
    }
}
